package com.ruoyi.msg.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.annotation.SysUserInfoById;
import com.ruoyi.common.annotation.SysUserInfoByUsername;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;
import java.util.List;


/**
 * 答疑解惑视图对象 msg_qa
 *
 * @author xiaohao
 * @date 2023-02-01
 */
@Data
@ExcelIgnoreUnannotated
public class MsgQaVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 回复id
     */
    @ExcelProperty(value = "回复id")
    private Long replyId;

    /**
     * 类型
     */
    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "dyjhlx")
    private String type;

    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    private String content;

    private Date createTime;

    private String createBy;

    @SysUserInfoByUsername
    public Object getCreateByInfo() {
        return createBy;
    }

    private List<MsgQaVo> replies;


}
